package cn.jsu.oj.judgment.factory;

import cn.jsu.oj.judgment.strategy.ApplyRolePackHandle;
import cn.jsu.oj.judgment.strategy.JudgeTaskHandle;
import cn.jsu.oj.judgment.strategy.QuantityResponseHandle;
import cn.jsu.oj.judgment.strategy.WakeUpHandle;
import java.util.HashMap;
import java.util.Map;


/**
 * 申请角色 处理工厂
 */
public class ApplyRoleFactory {
    public static final Map<Short, ApplyRolePackHandle> map = new HashMap<>(3);

    static {

        //判题任务策略
        map.put((short) 12,new JudgeTaskHandle());
        //任务数量应答策略
        map.put((short) 21,new QuantityResponseHandle());
        //唤醒策略
        map.put((short) 89,new WakeUpHandle());
    }

}
